home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / necko / nsPISocketTransportService.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  133 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsPISocketTransportService.idl
  3.  */
  4.  
  5. #ifndef __gen_nsPISocketTransportService_h__
  6. #define __gen_nsPISocketTransportService_h__
  7.  
  8.  
  9. #ifndef __gen_nsISocketTransportService_h__
  10. #include "nsISocketTransportService.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsPISocketTransportService */
  19. #define NS_PISOCKETTRANSPORTSERVICE_IID_STR "6f704e69-a5fb-11d9-8ce8-0011246ecd24"
  20.  
  21. #define NS_PISOCKETTRANSPORTSERVICE_IID \
  22.   {0x6f704e69, 0xa5fb, 0x11d9, \
  23.     { 0x8c, 0xe8, 0x00, 0x11, 0x24, 0x6e, 0xcd, 0x24 }}
  24.  
  25. /**
  26.  * This is a private interface used by the internals of the networking library.
  27.  * It will never be frozen.  Do not use it in external code.
  28.  */
  29. class NS_NO_VTABLE nsPISocketTransportService : public nsISocketTransportService {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_PISOCKETTRANSPORTSERVICE_IID)
  33.  
  34.   /**
  35.    * init/shutdown routines.
  36.    */
  37.   /* void init (); */
  38.   NS_IMETHOD Init(void) = 0;
  39.  
  40.   /* void shutdown (); */
  41.   NS_IMETHOD Shutdown(void) = 0;
  42.  
  43.   /**
  44.    * controls whether or not the socket transport service should poke
  45.    * the autodialer on connection failure.
  46.    */
  47.   /* attribute boolean autodialEnabled; */
  48.   NS_IMETHOD GetAutodialEnabled(PRBool *aAutodialEnabled) = 0;
  49.   NS_IMETHOD SetAutodialEnabled(PRBool aAutodialEnabled) = 0;
  50.  
  51. };
  52.  
  53. /* Use this macro when declaring classes that implement this interface. */
  54. #define NS_DECL_NSPISOCKETTRANSPORTSERVICE \
  55.   NS_IMETHOD Init(void); \
  56.   NS_IMETHOD Shutdown(void); \
  57.   NS_IMETHOD GetAutodialEnabled(PRBool *aAutodialEnabled); \
  58.   NS_IMETHOD SetAutodialEnabled(PRBool aAutodialEnabled); 
  59.  
  60. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  61. #define NS_FORWARD_NSPISOCKETTRANSPORTSERVICE(_to) \
  62.   NS_IMETHOD Init(void) { return _to Init(); } \
  63.   NS_IMETHOD Shutdown(void) { return _to Shutdown(); } \
  64.   NS_IMETHOD GetAutodialEnabled(PRBool *aAutodialEnabled) { return _to GetAutodialEnabled(aAutodialEnabled); } \
  65.   NS_IMETHOD SetAutodialEnabled(PRBool aAutodialEnabled) { return _to SetAutodialEnabled(aAutodialEnabled); } 
  66.  
  67. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  68. #define NS_FORWARD_SAFE_NSPISOCKETTRANSPORTSERVICE(_to) \
  69.   NS_IMETHOD Init(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(); } \
  70.   NS_IMETHOD Shutdown(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Shutdown(); } \
  71.   NS_IMETHOD GetAutodialEnabled(PRBool *aAutodialEnabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAutodialEnabled(aAutodialEnabled); } \
  72.   NS_IMETHOD SetAutodialEnabled(PRBool aAutodialEnabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAutodialEnabled(aAutodialEnabled); } 
  73.  
  74. #if 0
  75. /* Use the code below as a template for the implementation class for this interface. */
  76.  
  77. /* Header file */
  78. class _MYCLASS_ : public nsPISocketTransportService
  79. {
  80. public:
  81.   NS_DECL_ISUPPORTS
  82.   NS_DECL_NSPISOCKETTRANSPORTSERVICE
  83.  
  84.   _MYCLASS_();
  85.  
  86. private:
  87.   ~_MYCLASS_();
  88.  
  89. protected:
  90.   /* additional members */
  91. };
  92.  
  93. /* Implementation file */
  94. NS_IMPL_ISUPPORTS1(_MYCLASS_, nsPISocketTransportService)
  95.  
  96. _MYCLASS_::_MYCLASS_()
  97. {
  98.   /* member initializers and constructor code */
  99. }
  100.  
  101. _MYCLASS_::~_MYCLASS_()
  102. {
  103.   /* destructor code */
  104. }
  105.  
  106. /* void init (); */
  107. NS_IMETHODIMP _MYCLASS_::Init()
  108. {
  109.     return NS_ERROR_NOT_IMPLEMENTED;
  110. }
  111.  
  112. /* void shutdown (); */
  113. NS_IMETHODIMP _MYCLASS_::Shutdown()
  114. {
  115.     return NS_ERROR_NOT_IMPLEMENTED;
  116. }
  117.  
  118. /* attribute boolean autodialEnabled; */
  119. NS_IMETHODIMP _MYCLASS_::GetAutodialEnabled(PRBool *aAutodialEnabled)
  120. {
  121.     return NS_ERROR_NOT_IMPLEMENTED;
  122. }
  123. NS_IMETHODIMP _MYCLASS_::SetAutodialEnabled(PRBool aAutodialEnabled)
  124. {
  125.     return NS_ERROR_NOT_IMPLEMENTED;
  126. }
  127.  
  128. /* End of implementation class template. */
  129. #endif
  130.  
  131.  
  132. #endif /* __gen_nsPISocketTransportService_h__ */
  133.